package cate.game.role.pvp.guildwar.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBGuildWar;
import cate.game.pvp.guildwar.data.GWBattleField;
import cate.game.pvp.guildwar.data.GuildWar;
import easy.java.dev.note.NoteField;

import java.util.Map;

@ClientMsg(title = "公会战 宝箱奖励数据 の 返回")
public class GuildWarBoxResp implements MsgOutput {

    @NoteField("宝箱奖励记录")
    public Map<Integer, GWBattleField.BoxRec> boxRwd;

    @NoteField("宝箱数量")
    public int boxNum;

    public GuildWarBoxResp(GuildWar war) {
        boxRwd = war.field.boxRwd;
        boxNum = war.field.fightUids.size();
    }

    public GuildWarBoxResp() {
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBGuildWar.BOX_DETAIL_RESP;
    }
}
